<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<body>
<div  th:fragment="validate(bindingResult)" class="panel-heading error-heading"   th:if="${bindingResult}" >
    <div class="alert alert-danger alert-dismissable error-alert" th:each="error:${bindingResult.getFieldErrors()}">
        <button type="button" class="close" data-dismiss="alert"
                aria-hidden="true">
            &times;
        </button>
        <span th:text="${error.getDefaultMessage()}" class="error-text"></span>
    </div>
</div>
</body>
</html>